import request from '@/api/request'

export function orderDetail(orderId) { // 查询订单列表及分页
  return request({
    url: `/lejuAdmin/order/orderDetail/${orderId}`,
    method: 'get'
  })
}
export function sendDone(data) { // 确认发货
  return request({
    url: `/lejuAdmin/order/sendDone`,
    method: 'post',
    data
  })
}
export function finishOrder(id) { // 关闭订单
  return request({
    url: `/lejuAdmin/order/finishOrder/${id}`,
    method: 'post'
  })
}

export function receiveProductsForce(id) { // 强制确认收货
  return request({
    url: `/lejuAdmin/order/receiveProductsForce/${id}`,
    method: 'post'
  })
}

